import { init } from 'snabbdom/build/package/init';
import { h } from 'snabbdom/build/package/h';

const patch = init([])

let vnode = h('ul', [
  h('li', { key: 'a' }, 'aaa'),
  h('li', { key: 'b' }, 'bbb'),
  h('li', { key: 'c' }, 'ccc')
])


let app = document.querySelector('#app')
let oldVnode = patch(app, vnode)

vnode = h('ul', [
  h('li', { key: 'b' }, 'bbb'),
  h('li', { key: 'a' }, 'aaa'),
  h('li', { key: 'c' }, 'ccc')
])

patch(oldVnode, vnode)
